<!DOCTYPE html>
<html>
<head>
<#include "WEB-INF/view/_frag/meta.ftl">
<#include "WEB-INF/view/_frag/jscss.ftl">
<title>操作日志</title>
</head>
<body>
<nav class="breadcrumb">
	<i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span>系统管理<span class="c-gray en">&gt;</span> 操作日志 <a class="btn btn-success radius r" style="line-height: 1.6em; margin-top: 3px" href="javascript:location.replace(location.href);" title="刷新"><i class="Hui-iconfont">&#xe68f;</i></a>
</nav>
<div class="page-container">
	<form action="${basePath}/operRecord/list" method="post" class="form form-horizontal">
		<div class="text-c">
			日期范围： <input type="text" name="operRecord.search_date_start" value="${operRecord.search_date_start}" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" class="input-text Wdate" style="width: 120px;" /> - <input type="text" name="operRecord.search_date_end" value="${operRecord.search_date_end}" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" class="input-text Wdate" style="width: 120px;" />
			<input type="text" name="operRecord.userid" value="${operRecord.userid}" placeholder="操作人" style="width: 250px" class="input-text" />
			<button type="submit" class="btn btn-success radius">
				<i class="Hui-iconfont">&#xe665;</i> 搜索
			</button>
		</div>
	</form>
	<div class="pd-5 mt-20">
		<table id="record_list" class="table table-border table-bordered table-bg table-hover table-sort">
			<thead>
				<tr class="text-c">
						 <th>序号</th>
					     <th>操作人</th>
					     <th>类型</th>
				         <th>操作时间</th>
				         <th>操作IP</th>
				         <th>操作内容</th>
				</tr>
			</thead>
			<tbody>
				<#list page.dataList as data>
				<tr class="text-c">
					<td>${data_index+1}</td>
					<td>
						${data.real_name}
					</td>	
					<td>
						<#if data.role_type == "0">
							管理员
						<#else >
							APP用户
						</#if>
					</td>	
					<td>${data.oper_time}</td>	
					<td>${data.ip}</td>	
					<td>${data.content}</td>	
				</tr>
				</#list>
			</tbody>
		</table>
	</div>
	<div class="pd-5 mt-20" id="jsPage"></div>
</div>

<script type="text/javascript">
	${page.jsPage}

	$('#record_list').dataTable({
		"bStateSave" : true,//状态保存
		"pading" : false,
		"aoColumnDefs" : [{"orderable" : false,"aTargets" : [2]} // 不参与排序的列
			],
		"bLengthChange" : false,
		"bInfo" : false,
		"bPaginate" : false,
	});
</script>

</body>
</html>